package com.pay.task;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
//@EnableScheduling //开启定时任务
public class PayTaskApplication {

    public static void main(String[] args) {
        SpringApplication.run(PayTaskApplication.class, args);
    }


    @Bean
//    @LoadBanlande
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
